<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>旋转可乐</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    body {
      display: flex;
      height: 100vh;
      justify-content: center;
      align-items: center;
      /* background-color: #f5f5f5; */
     
    }
    .cola {
      background-image: url(images/bizhi.png);
      background-repeat: repeat-x;
      background-position: 0 10px;
      animation: bg 8s linear infinite ;
    }
    @keyframes bg {
      from{
        background-position: 0 10px;
      }
      to{
        background-position: -537px 10px;
      }
    }
  </style>
</head>
<body>
  <div class="cola">
    <img src="images/body.png" alt="">
  </div>
</body>
</html>